package com.san.school.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.school.entity.TeacherExample;
import com.san.school.mapper.TeacherMapper;
import com.san.school.entity.Teacher;
import com.san.school.service.TeacherService;
/**
 * ClassName:TeacherServiceImpl
 * PackageName:com.san.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 17:07
 * 
 */
 
 
@Service
public class TeacherServiceImpl implements TeacherService{

    @Resource
    private TeacherMapper teacherMapper;

    @Override
    public long countByExample(TeacherExample example) {
        return teacherMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(TeacherExample example) {
        return teacherMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer tid) {
        return teacherMapper.deleteByPrimaryKey(tid);
    }

    @Override
    public int insert(Teacher record) {
        return teacherMapper.insert(record);
    }

    @Override
    public int insertSelective(Teacher record) {
        return teacherMapper.insertSelective(record);
    }

    @Override
    public List<Teacher> selectByExample(TeacherExample example) {
        return teacherMapper.selectByExample(example);
    }

    @Override
    public Teacher selectByPrimaryKey(Integer tid) {
        return teacherMapper.selectByPrimaryKey(tid);
    }

    @Override
    public int updateByExampleSelective(Teacher record,TeacherExample example) {
        return teacherMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Teacher record,TeacherExample example) {
        return teacherMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Teacher record) {
        return teacherMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Teacher record) {
        return teacherMapper.updateByPrimaryKey(record);
    }

}
